<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<script type="text/javascript" src="static/js/ckeditor/ckeditor.js"></script>
	
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css" />
	<style type="text/css">
		.body{
			padding-top:60px;
		
		}
		.right{
			float:right;
		}
	</style>
</head>
<body class="body">

	<div class="container">
	  <div class="row">
	 
	  <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="document" name="tag"/>
		</jsp:include>
		
	 
	<div class="span9">
		 <form action="document.jspx?m=update&id=${document.id}" method="post">
			  <fieldset>
					<legend>编辑资料</legend>
					<div class="control-group">
					  <label class="control-label" for="input01">标题</label>
					   <div class="controls">
						  <input type="text" name="title" class="span9" id="input01" value="${document.title }"/>
					   </div>
					</div>
					
					<div class="control-group">
					 <label class="contol-label" for="input01">内容</label>
					   <div class="controls">
					   		
					   		<textarea name="content" id="editor1" style="display:none">${document.content }</textarea>
					   </div>
					</div>
					<div class="form-actions" style="background-color:white;border-top:0px">
						<button type="submit" class="btn btn-primary">保存</button>
						<button class="btn" onclick="location.back()">返回</button>
					</div>
			   </fieldset>	
		</form>
	  </div>
	 </div>
   </div>
   <script type="text/javascript">
		CKEDITOR.replace( 'editor1' );
	</script>
   
  </body>
</html>